using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevProcessinfoTList, table list:dev_processinfo_t 
	/// </summary>
	internal class DevProcessinfoTList : BaseWritableEntities<DevProcessinfoT>, IDevProcessinfoTList
	{
		private DevProcessinfoTQueryDAO _queryDAO;
		private DevProcessinfoTWritingDAO _writeDAO;

		public DevProcessinfoTList(DevProcessinfoTQueryDAO queryDao, DevProcessinfoTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevProcessinfoT,table items:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessinfoT> GetDevProcessinfoTAllItems()
		{
			return _queryDAO.GetDevProcessinfoTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevProcessinfoT,table items:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessinfoT> GetDevProcessinfoTItemsById(int id)
		{
			return _queryDAO.GetDevProcessinfoTItemsById(id);
		}

		/// <summary>
		/// 根据planJobId，获取所有DevProcessinfoT,table items:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessinfoT> GetDevProcessinfoTItemsByPlanJobId(int planJobId)
		{
			return _queryDAO.GetDevProcessinfoTItemsByPlanJobId(planJobId);
		}

		/// <summary>
		/// 根据imgGroupId，获取所有DevProcessinfoT,table items:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevProcessinfoT> GetDevProcessinfoTItemsByImgGroupId(int imgGroupId)
		{
			return _queryDAO.GetDevProcessinfoTItemsByImgGroupId(imgGroupId);
		}

		/// <summary>
		/// 增加一行DevProcessinfoT,table item:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevProcessinfoT(DevProcessinfoT item)
		{
			return this._writeDAO.AddDevProcessinfoT(item);
		}

		/// <summary>
		/// 增加多行DevProcessinfoT,table items:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevProcessinfoTs(DevProcessinfoT[] items)
		{
			return this._writeDAO.AddDevProcessinfoTs(items);
		}

		/// <summary>
		/// 更新一行DevProcessinfoT,table item:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevProcessinfoT(DevProcessinfoT item)
		{
			return this._writeDAO.UpdateDevProcessinfoT(item);
		}

		/// <summary>
		///  更新多行DevProcessinfoT,table items:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevProcessinfoTs(DevProcessinfoT[] items)
		{
			return this._writeDAO.UpdateDevProcessinfoTs(items);
		}

		/// <summary>
		/// 删除一行DevProcessinfoT,table item:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessinfoT(DevProcessinfoT item)
		{
			return this._writeDAO.DeleteDevProcessinfoT(item);
		}

		/// <summary>
		///  删除多行DevProcessinfoT,table items:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessinfoTs(DevProcessinfoT[] items)
		{
			return this._writeDAO.DeleteDevProcessinfoTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevProcessinfoT,table entity:dev_processinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevProcessinfoTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevProcessinfoTByIds(ids);
		}

	}
}
